package com.ib.review.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    SUCCESS(200, "OK"),
    OPERATION_FAILED(500, "操作失败"),
    NOT_FOUND_HEADER(501, "未找到表头"),
    VALIDATE_ERROR(502, "请求参数错误"),
    LOGIN_FILE_FAILED(503,"登录文件系统失败"),
    MINIO_UPLOAD_FAIL(504,"上传minio失败"),
    FILE_IS_NULL(505,"文件不能为空"),
    FILENAME_ISNULL(505,"文件名不能为空"),
    FILE_TYPE_ERROR(506,"只支持.jpeg,.jpg,.gif,.png,.bmp,.pdf文件"),
    EXCEL_ERROR(507,"只允许上传Excel文件(.xls, .xlsx)"),
    FILE_IS_EXIST(508,"该文件已存在，无需再次上传。"),
    KNOWLEDGE_NAME_EXIST(509,"该知识名称已存在");

    //状态码、状态码描述
    private Integer code;
    private String msg;
}
